import * as util from '@/utils/tools'

const AdminkenKey = 'Admin-Token'
const ActiveTab = 'Active-Tab'

export function getAdminToken() {
  return util.getLocalStorage(AdminkenKey) || null
}

export function setAdminToken(token) {
  return util.setLocalStorage(AdminkenKey, token) || null
}

export function deleteAdminToken() {
  return util.deleteLocalStorage(AdminkenKey) || null
}

export function getActiveTabStorage() {
  return util.getLocalStorage(ActiveTab) || null
}

export function setActiveTabStorage(activeTab) {
  return util.setLocalStorage(ActiveTab, activeTab) || null
}

export function deleteActiveTabStorage() {
  return util.deleteLocalStorage(ActiveTab) || null
}
